package com.compass.mobile.ui.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.compass.mobile.databinding.LayoutItemCommonBinding
import com.compass.mobile.framework.adapter.BaseBindViewHolder
import com.compass.mobile.framework.adapter.BaseRecyclerViewAdapter

/**
 * Description： 字母
 * Date:2024/7/8 14:10
 */
class LetterAdapter : BaseRecyclerViewAdapter<String, LayoutItemCommonBinding>() {


    override fun getViewBinding(
        layoutInflater: LayoutInflater,
        parent: ViewGroup,
        viewType: Int
    ): LayoutItemCommonBinding {
        return LayoutItemCommonBinding.inflate(layoutInflater, parent, false)
    }

    override fun onBindDefViewHolder(
        holder: BaseBindViewHolder<LayoutItemCommonBinding>,
        item: String?,
        position: Int
    ) {
        if (item == null) return
        holder.binding.apply {
            tvName.text=item

        }
    }

}